<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('admin/order/shipList')}">发货单</a></li>
    </ul>
    <form class="well form-inline margin-top-20" id="search-form2" method="post" action="{:url('admin/order/shipList')}">


        收货人：
        <input type="text" name="consignee"  value="{$consignee|default=''}" placeholder="请输入收货人..." class="form-control">
        订单编号：
        <input type="text" name="order_id"  value="{$order_id|default=''}" placeholder="请输入订单编号..." class="form-control">
        <button type="submit" class="btn btn-primary" value="搜索">搜索</button>
        <a class="btn btn-danger" href="{:url('admin/order/shipList')}">清空</a>
    </form>
    <form class="js-ajax-form" action="" method="post">

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="15">
                    <label>
                        <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th>订单编号</th>
                <th>收件人</th>
                <th>快递单号</th>
                <th>配送快递</th>
                <th>状态</th>
                <th>发货时间</th>
                <th>下单时间</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <foreach name="order" item="vo">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                               value="{$vo.id}" title="ID:{$vo.id}"></td>
                    <td>{$vo.order_id}</td>
                    <td>{$vo.consignee}</td>
                    <td>{$vo.delivery_no}</td>
                    <td>{$vo.shipping_name}</td>
                    <td>
                        <if condition="$vo.shipping_status eq 1">
                            已发货
                            <elseif condition="$vo.shipping_status eq 2"/>
                            已收货
                        </if>
                    </td>
                    <td>
                        {$vo.shipping_time|date='Y-m-d H:i:s',###}
                    </td>
                    <td>
                        {$vo.create_time|date='Y-m-d H:i:s',###}
                    </td>
                    <td>
                        <a href="{:url('admin/order/shipDetail',array('id'=>$vo['id']))}">查看</a>
                    </td>
                </tr>
            </foreach>

        </table>
        <div class="pagination">{$page}</div>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script src="__STATIC__/js/myajax.js"></script>
</body>
</html>